home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc / Sample Code / CALib & You… / Source / CASample / CAS_Win.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-12-07  |  2.3 KB  |  83 lines  |  [TEXT/MPS ]

  1. /*
  2.  
  3.     File:        CAS_Win.h
  4.  
  5.     Contains:    Constants and public function prototypes for CAS_Win.c
  6.  
  7.     Written by:    David H Nelson
  8.  
  9.     Copyright © 1993-1995 ComponentWorks, All rights reserved.
  10.  
  11.     Change History (most recent first):
  12.  
  13.          <2>     01/17/95    DAS        added Win_IsToolWindow() prototype
  14.          <1>     11/20/93    DHN        Created.
  15. */
  16.  
  17. #if !defined(_H_CAS_Win)
  18. #define _H_CAS_Win
  19.  
  20. #define WINDOWKIND_FLOATING    69
  21.  
  22.  
  23. /* •••NOTE: pertains to v2.0 version of <Window.h> */
  24. #if defined(STRICT_WINDOWS)
  25. #define MODERN_WINDOW_REF    WindowRef
  26. #else
  27. #define MODERN_WINDOW_REF    WindowPeek
  28. #endif
  29.  
  30.  
  31. #if defined(__cplusplus)
  32. extern "C"
  33. {
  34. #endif
  35.  
  36. //---------------------------------------------------------------------------
  37.  
  38. // Window Control Routines
  39.  
  40. void        Win_Update(                        WindowPtr theWindow );
  41. void        Win_Adjust(                        WindowPtr theWindow );
  42. void        Win_AdjustStdState(                WindowPtr theWindow );
  43. WindowPtr    Win_CenterWindow(                WindowPtr theWindow );
  44. WindowPtr    Win_CenterWindowOnParentWindow(    WindowPtr theWindow );
  45. WindowPtr    Win_CenterTWindow(                WindowPtr theWindow,short iTitleSize );
  46. void        Win_CenterShowWindow(            WindowPtr theWindow );
  47. void        Win_CheckWindowPosition(        WindowPtr theWindow );
  48. OSErr         Win_Close(                        WindowPtr theWindow, Boolean* cancelled );
  49. WindowPtr     Win_New(                        WindowPtr behindWindow, Rect *windowRect );
  50. void        Win_Scroll(                        WindowPtr theWindow, short hDist, short vDist );
  51. short        Win_SetFloaterKind(                WindowPtr theWindow );
  52. void        Win_SendActivateEvent(            WindowPtr theWindow, Boolean isActive );
  53. void        Win_ShowHide(                    WindowPtr theWindow, Boolean showIt );
  54. void        Win_ShowSelection(                WindowPtr theWindow );
  55.  
  56.  
  57. void        Win_DragWindow_Better(            WindowPtr    theWindow,
  58.                                             Point        theGlobalPt,
  59.                                             Rect        *boundsR );
  60.                                 
  61. // Window Attribute Routines
  62.                 
  63. Boolean     Win_DoBackClicks(                WindowPtr theWindow);
  64. Boolean        Win_IsAppWindow(                WindowPtr theWindow);
  65. Boolean        Win_IsDAWindow(                    WindowPtr theWindow);
  66. Boolean        Win_IsDialogWindow(                WindowPtr theWindow);
  67. Boolean        Win_IsFloater(                    WindowPtr theWindow);
  68. Boolean        Win_IsToolWindow(                WindowPtr theWindow);
  69. Boolean        Win_IsVisible(                     WindowPtr theWindow);
  70.  
  71. pascal Boolean bWindowEventFilter(DialogPtr theDialog, EventRecord *theEvent, short *itemHit);
  72. pascal Boolean bWindowEventYDFilter(DialogPtr theDialog, EventRecord *theEvent, short *itemHit, Ptr yourData);
  73.  
  74.  
  75.  
  76. #if defined(__cplusplus)
  77. }
  78. #endif
  79.  
  80.  
  81. #endif
  82.  
  83.